package com.zzz.demo.service;


import com.zzz.demo.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import java.util.List;

/**
 * Created by tony on 2017/6/19.
 */
@FeignClient("springcloud-provider-user-service")
public interface UserServiceClient {

    @RequestMapping(value = "/list",method = RequestMethod.GET)
    List<User> getAllUser();

}
